<?
	include('chksession.php');
	include('conn.php');
	session_start();
   
	  $prefx = $_REQUEST['prefx'];
	  $empname = $_REQUEST['empname'];
      $address = $_REQUEST['address'];
	  $city = $_REQUEST['city'];
	  $email = $_REQUEST['email'];
	  $phoneno = $_REQUEST['phoneno'];
	  $empid = $_REQUEST['empid'];
	  $designation = $_REQUEST['designation'];
	   $enteredby=$_SESSION['username'];
	   $sal=$_REQUEST['sal'];
	   	
		$sql="update employeemast set empname='$empname',designation='$designation',address='$address',city='$city',email='$email',phoneno='$phoneno',prefx='$prefx',enteredby='$enteredby',sal='$sal',entrydt=sysdate() where status=0 and empid=$empid";
						
		$res=mysql_query($sql);
		if($res)
		$msg='Record updated successfully...';					

?>